<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page isELIgnored="false"%>
<%@ page import="cn.e2win.biz.util.StringUtils"%>
<%@ page import="cn.e2win.biz.util.DateUtils"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!-- SESSION_START{success:true,msg:'登录成功！'}SESSION_END -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" /><!-- 
<link rel="shortcut icon" href="http://www.ggzzapp.com/favicon.ico"/> -->
  <link href="favicon.ico" rel="icon" type="image/x-icon">
  <link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
<title>管理系统后台</title><!-- ${USER.coName} -->
<link href="themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
<link href="uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
<link href="themes/css/zoom.css" rel="stylesheet" type="text/css" />

<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<!--[if lte IE 9]>
<script src="js/speedup.js" type="text/javascript"></script>
<![endif]-->


<script language="javascript">


Date.prototype.format =function(format)
{
	var o = {
	"M+" : this.getMonth()+1, //month
	"d+" : this.getDate(), //day
	"h+" : this.getHours(), //hour
	"m+" : this.getMinutes(), //minute
	"s+" : this.getSeconds(), //second
	"q+" : Math.floor((this.getMonth()+3)/3), //quarter
	"S" : this.getMilliseconds() //millisecond
	}
	if(/(y+)/.test(format)) format=format.replace(RegExp.$1,
	(this.getFullYear()+"").substr(4- RegExp.$1.length));
	for(var k in o)if(new RegExp("("+ k +")").test(format))
	format = format.replace(RegExp.$1,
	RegExp.$1.length==1? o[k] :
	("00"+ o[k]).substr((""+ o[k]).length));
	return format;
};




initView = function(action,todo, msg){
	//添加
	if(action=='ADD'){
		$(".readOnlyObj",navTab.getCurrentPanel()).hide();
	//编辑 //修改
	}else if(action=='MODIFY'){
		$(".readOnlyObj",navTab.getCurrentPanel()).prop("readonly", true);
		$(".readOnlyObj",navTab.getCurrentPanel()).show();
	//查看
	}else if(action=='VIEW' ){
		$(".submit",navTab.getCurrentPanel()).hide();	
		$("#form",navTab.getCurrentPanel()).find('input, textarea').prop("readonly", true);
		$("#form",navTab.getCurrentPanel()).find('select, checkbox, radio').prop("disabled",true);
		//如单号等 添加后自动生成的对象
		$(".readOnlyObj",navTab.getCurrentPanel()).show();
	}
	
	
	
	if(todo){
		$("."+todo,navTab.getCurrentPanel()).show();
		$("."+todo,navTab.getCurrentPanel()).find('input, textarea').removeAttr("readonly");
		$("."+todo,navTab.getCurrentPanel()).find('input, textarea').removeAttr("class","readonly");
	}
	
	
	
	if(msg){
		alertMsg.warn(msg, null);
	}
}

isConfirm = function(msg){
	if(!msg){
		msg = "是否确认提交?"
	}
	alertMsg.confirm(msg,{
			okCall: function(){
				validateCallback($("#form",navTab.getCurrentPanel()), navTabAjaxDone);
			},
			cancelCall : function() {
				return false;
			}
		});
	return false;
};
getZdzxEmp = function(request, response){
	getEmp(request, response, "Zdzx");
}
getDsEmp = function(request, response){
	getEmp(request, response, "Ds");
}
getCyzjEmp = function(request, response){
	getEmp(request, response, "Cyzj");
}
getCygsEmp = function(request, response){
	getEmp(request, response, "Cygs");
}

getEmp = function(request, response, type) {
	$.ajax({
		url: "common/getEmpList/"+type+".do",
		contentType:'application/x-www-form-urlencoded; charset=UTF-8',
		type:'POST',
		dataType: "json",
		data:{
			empName: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						value:item.empName,
						id:item.id
						
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};


getDsOrg = function(request, response){
	getOrg(request, response, "Ds");
}
getCyzjOrg = function(request, response){
	getOrg(request, response, "Cyzj");
}
getCygsOrg = function(request, response){
	getOrg(request, response, "Cygs");
}

getOrg = function(request, response, type) {
	$.ajax({
		url: "common/getOrgList/"+type+".do",
		contentType:'application/x-www-form-urlencoded; charset=UTF-8',
		type:'POST',
		dataType: "json",
		data:{
			orgName: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						value:item.orgName,
						id:item.id,
						areaId:item.areaId,
						address:item.address,
						adminUserId:item.adminUserId,
						adminUserId2:item.adminUserId2,
						x:item.x,
						y:item.y
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};

getUser = function( request, response ) {
	$.ajax({
		url: "sys/user/getUserList.do",
		contentType:'application/x-www-form-urlencoded; charset=UTF-8',
		type:'POST',
		dataType: "json",
		data:{
			userName: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						value:item.name,
						id:item.id
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};

setSelect = function(sel, param, url){
	selVal = sel.val();
	$.ajax({
		url: url,
		contentType:'application/x-www-form-urlencoded; charset=UTF-8',
		type:'POST',
		dataType: "json",
		data:param,
		success: function(data) {
            if (data != null && data != '') {
            	sel.html("");
                sel.append($("<option/>").text("请选择").attr("value",""));
                $(data).each(function(n){
                    sel.append($("<option/>").text(this._VALUE).attr("value",this._KEY));
                });
                sel.val(selVal);

		 	}else{
        	//alert("what's happing!!!!!?");
        	}
	 	}
	});
	 
};

setAllReadonly = function(){
	$("#form",navTab.getCurrentPanel()).find('input, textarea').prop("readonly", true);
	$("#form",navTab.getCurrentPanel()).find('select,checkbox').prop("disabled", "disabled");

	$(".editAble",navTab.getCurrentPanel()).removeAttr("readonly");
	$(".editAble",navTab.getCurrentPanel()).removeAttr("disabled");
	
	$(".submit",navTab.getCurrentPanel()).hide();
	
}

exportExcel = function(searchForm, pagerForm){
	var action = searchForm.attr("action");
	//pagerForm = $("#pagerForm",navTab.getCurrentPanel());	
	pagerForm.attr('action',action.replace(".do","Excel.do"));
	pagerForm.submit();
	pagerForm.attr('action',action);	
};


specExportExcel = function(url){
	//var url = "order/revenueRptExcel.do?funId=${funId}&rptType=${rptType}&countBy=" + countBy;
	//$.post(url, {"map.createDate_B_I":"${pager.scMap.createDate_B_I}", "map.createDate_E_I":"${pager.scMap.createDate_E_I}"});
	
	var form=$("<form>");//定义一个form表单
	form.attr("style","display:none");
	form.attr("target","");
	form.attr("method","post");
	form.attr("action",url);
	
	
	$("body").append(form);//将表单放置在web中

	form.submit();//表单提交


};

</script>
    
    
    
<link href="themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>




<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<!--[if lt IE 9]><script src="js/speedup.js" type="text/javascript"></script><script src="js/jquery-1.11.3.min.js" type="text/javascript"></script><![endif]-->
<!--[if gte IE 9]><!--><script src="js/jquery-2.1.4.min.js" type="text/javascript"></script><!--<![endif]-->


    
    
<script src="js/ui/jquery.ui.widget.min.js"></script>
<script src="js/ui/jquery.ui.position.min.js"></script>
<script src="js/ui/jquery.ui.menu.min.js"></script>
<script src="js/ui/jquery.ui.autocomplete.min.js"></script>
<script src="js/ui/jquery-ui.custom.min.js"></script>
    




<script src="js/jquery.cookie.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="xheditor/xheditor-1.2.2.min.js" type="text/javascript"></script>
<script src="xheditor/xheditor_lang/zh-cn.js" type="text/javascript"></script>
<script src="uploadify/scripts/jquery.uploadify.js" type="text/javascript"></script>

<!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
<script type="text/javascript" src="chart/raphael.js"></script>
<script type="text/javascript" src="chart/g.raphael.js"></script>
<script type="text/javascript" src="chart/g.bar.js"></script>
<script type="text/javascript" src="chart/g.line.js"></script>
<script type="text/javascript" src="chart/g.pie.js"></script>
<script type="text/javascript" src="chart/g.dot.js"></script>

<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=Bp7W7v3ueD02INZO3yXquaPKBOn9Vynz"></script><!-- 
<script type="text/javascript" src="http://api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js"></script> -->
<script type="text/javascript" src="js/Heatmap_min.js"></script>

<script src="js/dwz.core.js" type="text/javascript"></script>
<script src="js/dwz.util.date.js" type="text/javascript"></script>
<script src="js/dwz.validate.method.js" type="text/javascript"></script>
<script src="js/dwz.barDrag.js" type="text/javascript"></script>
<script src="js/dwz.drag.js" type="text/javascript"></script>
<script src="js/dwz.tree.js" type="text/javascript"></script>
<script src="js/dwz.accordion.js" type="text/javascript"></script>
<script src="js/dwz.ui.js" type="text/javascript"></script>
<script src="js/dwz.theme.js" type="text/javascript"></script>
<script src="js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="js/dwz.navTab.js" type="text/javascript"></script>
<script src="js/dwz.tab.js" type="text/javascript"></script>
<script src="js/dwz.resize.js" type="text/javascript"></script>
<script src="js/dwz.dialog.js" type="text/javascript"></script>
<script src="js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="js/dwz.cssTable.js" type="text/javascript"></script>
<script src="js/dwz.stable.js" type="text/javascript"></script>
<script src="js/dwz.taskBar.js" type="text/javascript"></script>
<script src="js/dwz.ajax.js" type="text/javascript"></script>
<script src="js/dwz.pagination.js" type="text/javascript"></script>
<script src="js/dwz.database.js" type="text/javascript"></script>
<script src="js/dwz.datepicker.js" type="text/javascript"></script>
<script src="js/dwz.effects.js" type="text/javascript"></script>
<script src="js/dwz.panel.js" type="text/javascript"></script>
<script src="js/dwz.checkbox.js" type="text/javascript"></script>
<script src="js/dwz.history.js" type="text/javascript"></script>
<script src="js/dwz.combox.js" type="text/javascript"></script>
<script src="js/dwz.file.js" type="text/javascript"></script>
<script src="js/dwz.print.js" type="text/javascript"></script>

<!-- 可以用dwz.min.js替换前面全部dwz.*.js (注意：替换时下面dwz.regional.zh.js还需要引入)
<script src="bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="js/dwz.regional.zh.js" type="text/javascript"></script>



<script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="js/zoom.js" type="text/javascript"></script>







<script type="text/javascript">
$(function(){
	DWZ.init("dwz.frag.xml", {
		loginUrl:"login_dialog.html", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"login.html",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		keys: {statusCode:"statusCode", message:"message"}, //【可选】
		ui:{hideMode:'offsets'}, //【可选】hideMode:navTab组件切换的隐藏方式，支持的值有’display’，’offsets’负数偏移位置的值，默认值为’display’
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"themes"}); // themeBase 相对于index页面的主题base路径
		}
	});
});
</script>

</head>
<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="javascript:;">标志</a>
				<ul class="nav">
					<!--
					<li id="switchEnvBox"><a href="javascript:">（<span>北京</span>）切换城市</a>
						<ul>
							<li><a href="sidebar_1.html">北京</a></li>
							<li><a href="sidebar_2.html">上海</a></li>
							<li><a href="sidebar_2.html">南京</a></li>
							<li><a href="sidebar_2.html">深圳</a></li>
							<li><a href="sidebar_2.html">广州</a></li>
							<li><a href="sidebar_2.html">天津</a></li>
							<li><a href="sidebar_2.html">杭州</a></li>
						</ul>
					</li>
					<li><a href="http://www.beetlesoft.net" target="_blank">帮助</a></li>
					<li><a href="sys/user/toPersonalSetting.do" target="dialog" title="申请试用" width="600"  mask="true" >申请试用</a></li>
					-->
					<li><a href="sys/user/toPersonalSetting.do" target="dialog" title="个性化设置" width="600"  mask="true" >欢迎您,${USER.userName}</a></li>
					<li><a href="sys/user/toChangePassword.do" target="dialog" width="600">更改密码</a></li>
					<li><a href="j_spring_security_logout">退出</a></li><!--
					<li><a href="comm/download/-1.do">打印组件</a></li>
					<li><a href="comm/download/0.do">帮助</a></li>-->
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li><!-- 
					<li theme="red"><div>红色</div></li> -->
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>

			<!-- navMenu -->

		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse">
						<div></div>
					</div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse">
					<h2>主菜单</h2>
					<div>收缩</div>
				</div>


				<div class="accordion" fillSpace="sidebar">
				
					<c:forEach items="${menuList}" var="menu">
					    <c:if test="${menu.hasItems == true }">
						    <div class="accordionHeader">
								<h2><span>Folder</span>${menu.title }</h2>
							</div>
							<div class="accordionContent">
							<ul class="tree">
							    <c:forEach items="${menu.functionList}" var="function">
									<li><a href="${function.url}" target="navTab" rel="listView_" reloadFlag=1>${function.title}</a></li>
							    </c:forEach>
							</ul>
						    </div>
						</c:if>
					</c:forEach>
					
				</div>
				
			</div>
		</div>


		<div id="container">
			<div id="navTab" class="tabsPage"> 
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent">
						<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span
										class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div>
					<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div>
					<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
							<div class="alertInfo">
							</div>
							<div class="left"><br><br>
								感谢您选用我们的产品及服务，满足您的需求是我们不懈的追求！
							</div>
						</div>
						<div class="pageFormContent" layoutH="80" style="margin-right:230px">
						
							<pre>
<!-- 							
					
2014-11-04更新日志
------------------------------------------------------
	
	1，添加多种色彩样式供用户选择。点击右上角的小彩色块切换。
	
	2，添加自定义支出项目功能。位于系统配置->基础数据维护，老板及财务可使用。
	
	3，进一步将添加的功能从原列表中独立出来。以方便使用。
							
										
2014-10-22更新日志
------------------------------------------------------
	
	1，将“添加业务单”功能从原来的业务单列表中独立出来，加入到左边主菜单，使用更方便
	
	2，添加业务单成功后，直接显示当前添加的业务单的明细页面，方便用户直接打印或查看业务单
	
	3，根据部份客户需求，添加了“股东”这一角色，其特点是可以查看业务订单、收款，支出等数据，
	但不能添加或修改相关数据（即不能参与日常经营工作）。
	
	4，持续优化界面。	
	
							
							
2014-10-09更新日志
------------------------------------------------------
	
	1，添加用户个性化设置功能，通过点击界面右上角的“欢迎您：XXX”进入设置界面，
	
	      目前可根据自己常用设备的分辨率设置合理的每页显示行数。
	
	2，对界面做了一些优化。
	
	
							
2014-09-26更新日志
------------------------------------------------------
	
	1，业务相关的程序加入导出excel功能。
		
	2，对业务员开放统计功能。
	
	3，新增收讫记录统计功能。
	
	4，调整了收讫记录程序的查询条件。
		
	5，对界面做了一些美化。
	
 -->
							</pre>
						</div>
						
						<div style="width:230px;position: absolute;top:60px;right:0" layoutH="80">
							
						</div>
					</div>
					
				</div>
			</div>
		</div>

	</div>
	<div id="footer">Copyright &copy; 2017 &nbsp; 武汉市中小企业职业教育指导中心&nbsp;&nbsp;&nbsp;&nbsp;鄂ICP备<a href="http://www.miitbeian.gov.cn">06013931号-1</a></div>
</body>
</html>
